<!DOCTYPE html>
<html>
<head>
    <title>库存工作单</title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
			<#if shiro.hasPermission("ware:wareordertask:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("ware:wareordertask:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("ware:wareordertask:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
														                    <div class="form-group">
                        <div class="col-sm-2 control-label">order_id</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="wareOrderTask.orderId" placeholder="order_id"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">order_sn</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="wareOrderTask.orderSn" placeholder="order_sn"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">收货人</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="wareOrderTask.consignee" placeholder="收货人"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">收货人电话</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="wareOrderTask.consigneeTel" placeholder="收货人电话"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">配送地址</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="wareOrderTask.deliveryAddress" placeholder="配送地址"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">订单备注</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="wareOrderTask.orderComment" placeholder="订单备注"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">付款方式【 1:在线付款 2:货到付款】</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="wareOrderTask.paymentWay" placeholder="付款方式【 1:在线付款 2:货到付款】"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">任务状态</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="wareOrderTask.taskStatus" placeholder="任务状态"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">订单描述</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="wareOrderTask.orderBody" placeholder="订单描述"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">物流单号</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="wareOrderTask.trackingNo" placeholder="物流单号"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">create_time</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="wareOrderTask.createTime" placeholder="create_time"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">仓库id</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="wareOrderTask.wareId" placeholder="仓库id"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">工作单备注</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="wareOrderTask.taskComment" placeholder="工作单备注"/>
                        </div>
                    </div>
							            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" id="btnSaveOrUpdate" data-loading-text="保存中..." @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/ware/wareordertask.js?_${.now?long}"></script>
</body>
</html>